|
The RT-TCP/IP stack allows for the monitoring of network device interfaces for link status via new fields in the RT-TCP/IP INI file.
NOTE: Monitoring network device interfaces is an optional feature. It is disabled by default.
The driver for the network device must support acknowledging generated interrupts on link status changes in order for stack monitoring to work.
New fields are listed under the [rtndX] sections in the RT-TCP/IP INI file:
Field | Default | Status |
---|---|---|
LinkStatus | 0 |
Monitor the link status for a given interface 0 – driver does not support link status 1 – driver supports link status |
LinkStatusPriority | 1 | Priority of the monitoring thread (0 to 127) |
LinkStatusInterval | 200 | Interval at which the monitoring thread checks for the link status (1 to 1000 ms) |
The example below shows an entry in the RT-TCP/IP INI file where link status monitoring is enabled (LinkStatus=1) for the RtE1000 driver:
[rtnd1] Driver=RtE1000 IPAddr=192.163.4.8 Netmask=255.255.0.0 InterruptPriority=64 ReceivePriority=63 NumRecvBuffers=48 NumXmitBuffers=48 LatencyRecvUpdated=0 LineBasedOnly=0 LinkStatus=1 LinkStatusPriority=1 LinkStatusInterval=200